import request from "@/utils/request";
export default {
    namespaced: true,
    state: {
        isReaded: false
    },

    mutations: {
        setReaded(state, value) {
            state.isReaded = value
        }
    },
    actions: {
        haveToMe(context) {

            request.get("/message/haveToMe").then((res) => {
                // this.$store.commit("message/setReaded", res.data);
                context.commit("setReaded", res.data);
            });
        },
    }
}